<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <#include "../decorator/head.html"/>
    <title>MEE-日志管理</title>
</head>
<body data-catalog="service">
<#include "../decorator/banner.html"/>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2 sidebar">
            <#include "../decorator/sys_menu.html"/>
        </div>
        <div class="col-sm-offset-2 col-sm-10">
            <div class="main">
                <!-- 业务内容 -->
                <form method="post" id="search-form" class="form-inline form-search">
                    <label class="form-label">日志类型</label>&nbsp;&nbsp;
                    <input type="text" name="log_type" >&nbsp;&nbsp;
                    <label class="form-label">日志标题</label>&nbsp;&nbsp;
                    <input type="text" name="log_title" >&nbsp;&nbsp;
                    <label class="form-label">日志时间</label>&nbsp;&nbsp;
                    <input type="text" class="date input-sm" name="log_date" >&nbsp;&nbsp;

                    <button name="query" type="submit" class="btn btn-sm btn-primary">查询</button>
                    <span class="seprator"></span>
                    <button name="del" class="btn btn-sm btn-danger">删除</button>
                    <span class="seprator"></span>
                    <button name="exp" class="btn btn-sm btn-default">导出</button>
                </form>
                <div id="data-list">
                </div>

                <script type="text/cc-template" id="template-data-list">
                    <table class="table table-striped table-bordered table-hover table-condensed">
                        <thead>
                        <tr>
                            <th width="40px;">选择</th>
                            <th>日志表ID</th>
                            <th>日志类型</th>
                            <th>日志标题</th>
                            <th>日志时间</th>
                            <th>登录信息</th>
                            <th>日志内容</th>

                        </tr>
                        </thead>
                        <tbody>
                        {{#each data}}
                        <tr>
                            <th><input type="radio" name="sel" value="{{@index}}"></th>
                            <td>{{id}}</td>
                            <td>{{#equal log_type 1}} 登录 {{/equal}} </td>
                            <td>{{log_title}}</td>
                            <td>{{log_date}}</td>
                            <td>{{remote_address}}</td>
                            <td>{{log_content}}</td>
                        </tr>
                        {{/each}}
                        </tbody>
                    </table>
                    <form class="form-paging">
                        <label>当前第 {{idx}} 页 / 总 {{pageCount}} 页, 每页
                            &nbsp;<select class="input-sm" name="pageSize" pageSize="{{size}}"></select>&nbsp;条</label>
                        <span class="seprator"></span>
                        <button name="firstpage" class="btn btn-sm">首页</button>
                        <button name="prevpage" class="btn btn-sm">上一页</button>
                        <button name="nextpage" class="btn btn-sm">下一页</button>
                        <button name="lastpage" class="btn btn-sm">末页</button>
                        <span class="seprator"></span>
                        <label>第<input type="text" name="pageIdx" class="page" value="{{index}}" size="3"></input>页</label>
                        <button name="gopage" class="btn btn-sm">GO</button>
                    </form>
                </script>
                <script type="text/javascript">
                    $(function(){
                        seajs.use("sys/log", function(user){
                            user.init();
                        });
                    });
                </script>
            </div>
        </div>
    </div>
</div>
</body>
<!-- 底部静态 -->
<#include "../decorator/foot.html"/>
</html>
